#pragma once

#include "tccore_global.h"

#include "NetworkReply.h"

#include <QNetworkAccessManager>
#include <QNetworkDiskCache>

namespace TC
{
	namespace Network
	{
		class TCCORE_EXPORT NetworkAccessManager : public QNetworkAccessManager
		{
			Q_OBJECT
		public:
			NetworkAccessManager(QObject *parent = nullptr);
			virtual ~NetworkAccessManager() override;
		public:
		protected:
			virtual QNetworkReply * createRequest(Operation op, const QNetworkRequest &request, QIODevice *outgoingData = nullptr) override;
		};
	}
}